import {
  get,
  post
} from "../api"

// 是否能导出
export const whetherCanExport = data => get('/bmj-api/api/pms/pmsPolicyNotice/whetherCanExport', data)

// 移动端下载接口
export const getPolicyCompanyUrl = data => get('/bmj-api/api/pms/pmsPolicyNoticeInfo/getPolicyCompanyUrl', data)

//是否点击下载
export const whetherDownload = data => get('/bmj-api/api/pms/pmsPolicyNotice/whetherDownload', data)

//获取公司公示名单
export const getProjectBatchNumber = data => get('/bmj-api/api/cms/cmsHonorProject/getProjectBatchNumber', data)

//获取公司公示名单详情列表
export const getCompanyListOfNames = data => get('/bmj-api/api/cms/cmsHonorProject/getCompanyListOfNames', data)

//获取地区
export const selectByTypeRegion = data => get('/bmj-api/api/pms/pmsPolicyNotice/selectByTypeRegion', data)

//根据部门获取政策通知
export const getDepartmentPolicyNotice = data => get('/bmj-api/api/pms/pmsPolicyNoticeInfo/getDepartmentPolicyNotice', data)

//分站信息
export const getSubInfo = data => get('/bmj-api/api/sys/depart/getSubInfo', data)

//部门订阅获取关键字
export const getMobileDepartmentKeywords = data => get('/bmj-api/api/home/getMobileDepartmentKeywords', data)

//订阅部门
export const departmentAttention = data => post('/bmj-api/api/pms/pmsGovernmentConcerns/departmentAttention', data)

//取消订阅部门
export const cancelAttention = (id) => post(`/bmj-api/api/home/cancelAttention?departmentId=${id}`)

//订阅部门列表
export const getPolicyDepartmentSubscribeInfo = data => get('/bmj-api/api/pms/pmsDepartment/getPolicyDepartmentSubscribeInfo', data)

// 政策通知详情
export const queryPolicyNoticeDetail = data => post('/bmj-api/api/es/Policy/queryPolicyNoticeDetail', data)

// 政策解读详情
export const getPolicyInterpretInfo = data => get('/bmj-api/api/pms/pmsPolicyInterpret/getPolicyInterpretInfo', data)